package app.caretrack.model;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;

@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class NamedBaseModel extends BaseModel {

    private String name;

    // private String description;

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /*
     * public String getDescription() { return this.description; } public void
     * setDescription(String description) { this.description = description; }
     */

    @Override
    public String toString() {
        return super.toString() + ":" + this.name;
    }
}
